Page({
  data: {
    phone: '',
    code: ''
  },
  onInputPhone(e) {
    this.setData({ phone: e.detail });
  },
  onInputCode(e) {
    this.setData({ code: e.detail });
  },
  onGetCode() {
    // 获取验证码逻辑
  },
  onBind() {
    // 绑定手机号逻辑
  }
})